<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册界面</title>
<script type="text/javascript" src="register.js"></script>
</head>
<body bgcolor="#82CA9C">
	<h1 align="center">会员注册</h1>
	<form action="${pageContext.request.contextPath}/register"
		method="post">
		<table cellpadding="8px" cellspacing="0" align="center">
			<tr>
				<td align="right">邮箱：</td>
				<td><input type="text" name="email" value="${email}"></td>
			</tr>
			<tr>
				<td align="right">用户名：</td>
				<td><input type="text" name="username" value="${username}"></td>
			</tr>
			<tr>
				<td align="right">密码：</td>
				<td><input type="password" name="password1"
					value="${password1}" /></td>
			</tr>
			<tr>
				<td align="right">再次输入密码：</td>
				<td><input type="password" name="password2"
					value="${password2}" /></td>
				<td><label style="color: red">${upMsg}</label></td>
			</tr>
			<tr>
				<td align="right">注册码：</td>
				<td><input type="text" name="rescode"></td>
				<td><span style="color: red">${errorCode}</span></td>
			</tr>
			<tr>
				<td align="right">验证码：</td>
				<td><input id="imagecode" name="imagecode" placeholder="不区分大小写" /></td>
				<!-- 调用一个Servlet生成一个图片验证码 -->
				<td><img src="${pageContext.request.contextPath}/randomCode" />
					<span id="imagecodeSpan" style="color: red">${errorMsg}</span></td>
			</tr>
			<tr>
				<td colspan="2" align="right"><input type="submit" value="注册" /><input
					type="reset" value="重置" style="margin-left: 7%" /><a
					style="margin-left: 7%"
					href="${pageContext.request.contextPath}/unchecked/login.jsp">我有账号</a></td>
			</tr>
		</table>
	</form>
</body>
</html>